package com.ymttest.common.entitie;

public class BlackBuyerInfo implements Comparable {
	/**
	 * 商家id
	 */
	private int SellerId;

	public final int getSellerId() {
		return SellerId;
	}

	public final void setSellerId(int value) {
		SellerId = value;
	}

	/**
	 * 买家id
	 */
	private int BuyerId;

	public final int getBuyerId() {
		return BuyerId;
	}

	public final void setBuyerId(int value) {
		BuyerId = value;
	}

	@Override
	public int compareTo(Object o) {
		BlackBuyerInfo bbi = (BlackBuyerInfo) o;
		// TODO Auto-generated method stub
		int busyId = bbi.getBuyerId();
		if (busyId > this.BuyerId) {
			return -1;
		} else if (busyId == this.BuyerId) {
			return 0;
		} else {
			return 1;
		}
	}
}